import request from '@/utils/request.js'


//题目查询


//单条查询
export const getTopic = (id) =>
request.get(`app/topic/${id}`)

//删除
export const deleteTopic = (id)=>
request.delete(`app/topic/${id}`)

//分页查询
export const getTopicPage = (SkipCount,MaxResultCount)=>
request.get(`app/topic?&SkipCount=${SkipCount}&MaxResultCount=${MaxResultCount}`)

//分页查询1
export const getTopicPage1 =()=>
request.get(`app/topic`)

//更新
export const updateTopic = (data)=>
request.put(`app/topic/${data.id}`,data)


//新增
export const createTopic = (data)=>
request.post(`app/topic`,data)
